System.Collections.IList.Item Property

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets the value at a particular index in the list.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
private Object IList.Item[
	int index
]{ get; set;}
Visual Basic (Declaration)
Private Property System.Collections.IList.Item ( _
	index As Integer _
) As Object Implements IList.Item
Visual C++
private:
virtual property Object^ System.Collections.IList.Item[int index] {
	Object^ get (int index) sealed = IList::Item::get;
	void set (int index, Object^ value) sealed = IList::Item::set;
}

Parameters

index
Int32
The index in the list to get or set an item at. The first item in the list has index 0, and the last has index Count-1.

Field Value

The item at the given index.

Exceptions

ExceptionCondition
System..::ArgumentOutOfRangeExceptionindex is less than zero or greater than or equal to Count.
System..::ArgumentExceptionvalue cannot be converted to T.
System..::NotSupportedExceptionAlways thrown from the setter, indicating that the list is read-only.

See Also